<?php

use common\lib\defaultHtml;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('app', 'Members');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="members-index">


    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'columns' => [
            // ['class' => 'yii\grid\SerialColumn'],

            'memberId',
            'memberKey',
            'mobile',
            // 'passwordKey',
            // 'passwordHash',
            //'ctime:datetime',

            [
                'class' => 'yii\grid\ActionColumn',
                'header' => '<div class="text-center">操作</div>',
                'template' => '<div class="btn-group">{view}</div>',
                'buttons' => [
                    'view' => function ($url, $model, $key) {return defaultHtml::a('<span class="fa fa-eye"></span> 详情', $url, ['title' => '查看详情', 'class' => 'btn btn-xs  btn-success']);},
                ],
                'headerOptions' => ['width' => '120'],
            ],
        ],
    ]); ?>


</div>
